import { Color, Vector2, Vector3, Vector4 } from "../util";
import { Component } from "./Component";

export class Slider extends Component {
    /**
     * 基础属性
     */
    //Slider类型
    public type = 11
    public uid = "985b5f12-31c9-4165-b12a-119c2c97f930"
    //名称
    public name = "slider_2"


    //滑动条的值 默认50
    public percent: number = 50
    //背景颜色
    public bg_color: Color
    //进度条颜色
    public progress_color: Color
    //滑块颜色
    public bar_normal_color: Color
    //背景图片
    public bg_image: number
    //进度条图片
    public image: number
    //滑块图片
    public bar_normal_image: number
    //滑块缩放 默认2,2
    public bar_scale: Vector2
    //更多滑块状态
    public bar_status = false
    //更多滑块状态图片 悬浮 按下 禁用
    public bar_image: Vector3
    //是否开启九宫格缩放
    public is_scale9_enable = false
    //图片缩放
    public cap_insets: Vector4
    //背景缩放
    public background_cap_insets: Vector4
}